package com.springcloud.server.modules.rocketmq;

import org.apache.rocketmq.spring.starter.annotation.RocketMQMessageListener;
import org.apache.rocketmq.spring.starter.core.RocketMQListener;
import org.springframework.stereotype.Service;


@Service
@RocketMQMessageListener(topic = "string-topic", consumerGroup = "string_consumer")
public class StringConsumer implements RocketMQListener<String> {
	
    @Override
    public void onMessage(String message) {
        System.out.println("------- StringConsumer received: {}" + message);
    }
}
